home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Online / OpenURL / Developer / Source / debug.h next >
C/C++ Source or Header  |  1999-09-26  |  428b  |  22 lines

  1. /* Debuggin defines used by SmartReadArgs */
  2.  
  3. #ifdef __GNUC__
  4. /* Debug output goes to stdout for GCC as debug.lib doesn't seem to be
  5.  * included in Geek Gadgets' distribution */
  6. #include <clib/alib_stdio_protos.h>
  7. #define bug printf
  8.  
  9. #else
  10. /* Debug output goes to serial port/sushi debug console */
  11. #define bug kprintf
  12. extern void kprintf(char *fmt,...);
  13. #endif
  14.  
  15. #ifdef DEBUG_CODE
  16. #define D(x)     x
  17. #else
  18. #define D(x)
  19. #endif
  20.  
  21.  
  22.